import query from './atom/db/query';

declare const action_id: string;
declare const session_id: string;
declare const spaceid: string;

interface Message {
	filter: {};
}

async function atom(msg: Message) {
	const systemid = '6051';
	const { exec, prepare } = query(action_id, session_id, spaceid, systemid);
	// 证照类型
	prepare('certifi_type', ['name', 'no'], msg.filter);
	const [data] = await exec();
	return data;
}